{% extends "qa_base.html" %}
{% block content %}
        <div id="wrapper">
            <div id="room">
                <div id="CAFull">
                    
<div class="tabBar">
    <div class="headUsers">用户列表</div>
    
<div class="tabsA">
<a href="/qa/users/?q={{ query|escape }}&amp;t=user&amp;Submit=搜索&sort=score" {%if content = 'score'%}class="on"{%endif%} title="sorted by reputation">积分</a>
<a href="/qa/users/?q={{ query|escape }}&amp;t=user&amp;Submit=搜索&sort=newest_enter" {%if content = 'newest_enter'%}class="on"{%endif%} title="newest members">最新加入</a>
<a href="/qa/users/?q={{ query|escape }}&amp;t=user&amp;Submit=搜索&sort=last_enter" title="oldest members" {%if content = 'last_enter'%}class="on"{%endif%}>最先加入</a>
<a href="/qa/users/?q={{ query|escape }}&amp;t=user&amp;Submit=搜索&sort=user_name" title="sorted by username" {%if content = 'user_name'%}class="on"{%endif%}>用户名</a></div>
</div>
<div id="main-body" style="width:100%">
    <p>             
			users matching query {{ query|escape }}: 
    </p>
    <div class="userList">
    {% for user in users %}
             					    <div class="user"> 
            					<ul> 
                                      <li class="thumb"><a href="/qa/questions/users/{{user.id}}/"><img class="gravatar" width="32" height="32" src="{% if user.image %}/{{user.image}}{%endif%}{%if not user.image%}/user_image/2011/08/05/test-image_1.jpg{%endif%}" alt="{{user.name}}'s  image" /></a></li> 
                					<li><a href="/qa/questions/users/{{user.id}}/">{{user.name}}</a></li>
                                    <li><span title="{{user.questions.all|length}} questions">{{user.questions.all|length}}</span><span class="badge1">&#9679;</span><span class="badgecount" title = '{{user.answer_set.all|length}} answers'>{{user.answer_set.all|length}}</span></li>
           						</ul> 
        					</div> 
    {% endfor %} 
    </div>
</div>
                </div>
                <div id="tail" style="clear:both;">
                    
<div class="pager">  
</div>             
                </div>
            </div>
            <div class="spacer3"></div>
        </div>
 {% endblock %}       
        
  
